package
{
	import fl.managers.SkinManager;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.system.ApplicationDomain;
	
	public class UITest extends Sprite
	{
		public function UITest()
		{
			if(stage){
				init();
			}else{
				this.addEventListener(Event.ADDED_TO_STAGE, __addedToStage);
			}
		}
		
		private function __addedToStage(e:Event):void{
			this.removeEventListener(Event.ADDED_TO_STAGE, __addedToStage);
			init();
		}
		
		private function init():void{
			SkinManager.instance.setup(ApplicationDomain.currentDomain);
			
		}
	}
}